package com.zjc.yohoshop.di.modules;

import com.zjc.yohoshop.mvp.contract.HomeContract;
import com.zjc.yohoshop.mvp.contract.MainContract;
import com.zjc.yohoshop.mvp.model.HomeModel;
import com.zjc.yohoshop.mvp.model.MainModel;

import dagger.Module;
import dagger.Provides;

/**
 * HomeModules->HomeActivity下需要注入的presenter
 * 的仓库
 * */
@Module
public class MainModules {
    public MainContract.IMaianView iView;

    public MainModules (MainContract.IMaianView iView){
        this.iView = iView;
    }


    @Provides
    public MainContract.IMaianView providerIHomeView(){
        return iView;
    }

    @Provides
    public MainContract.IMainModel providerIHomeModel(){
        return new MainModel();
    }


}
